<!DOCTYPE html>
<html>

<head>
	<meta charset="UTF-8">
	<title>添加科目</title>
<link rel="stylesheet" href="/scriptZIP/layui.min.css">
	<link rel="stylesheet" href="../css/item.css">
	<link rel="stylesheet" href="../css/layui.css">
	<style>
		.layui-row {
			margin-top: 50px;
		}
	</style>
</head>

<body>
	

	<div class="layui-row" id="vue-root">
		<div class="layui-col-md6 layui-col-md-offset3">
			<div class="layui-form-item">
				<label class="layui-form-label required">科目名称</label>
				<div class="layui-input-block">
					<input name="termName" v-validate="'required'" data-vv-as="科目名称" autocomplete="off"
						placeholder="请输入科目名称" class="layui-input name" v-model="item.name">
					<div class="checkout_state"></div>
				</div>
			</div>
			<!-- <div class="layui-form-item">
				<label class="layui-form-label">详细地址</label>
				<div class="layui-input-block">
					<input 
						placeholder="请输入教室详细地址" class="layui-input name" v-model="item.address">
					
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">教室状态</label>
				<div class="layui-input-block">
					<select class="layui-input name" v-model="item.disabled">
						<option :value="false">正常</option>
						<option :value="true">不可用</option>
					</select>
					<div class="checkout_state"></div>
				</div>
			</div>
			<div class="layui-form-item"> -->
				<div class="layui-input-block">
					<div class="offer" @click="submit">立即提交</div>
					<div class="return" onclick="history.back()">取消</div>
				</div>
			</div>
		</div>
	</div>

	<script src="/scriptZIP/qs.min.js"></script>
	<script src="/scriptZIP/vue.min.js"></script>
	
	
	<script src="/scriptZIP/axios.min.js"></script>

	<script src="/js/common.js"></script>
	<script src="/js/item.js"></script>


	<script>
		var app = new Vue(merge({
			data: {
				item: {
					agentId: top_params().id,
					disabled: false
				},
				url: '/pc/subType'
			}
		}));
	</script>
</body>

</html>